package cn.sitia.wallet.domain;

import cn.sitia.wallet.enums.WalletTransactionType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("wallet_transaction")
public class WalletTransaction {
    @TableId(type= IdType.AUTO)
    private Integer id;
    @TableField("user_id")

    private Integer userId;
    private BigDecimal amount;
    @TableField("transaction_type")
    private WalletTransactionType transactionType;
    private String description;
    @TableField("created_at")
    private Date createdAt;

}